package fserv.ni;

import fserv.entities.Reply;
import fserv.entities.FileProposition;
import fserv.entities.Command;

/**
 * Communication interface: ChatNI => ChatController
 * 
 * @author Arthur Bit-Monnot <abit@etud.insa-toulouse.fr>
 * @author Julien Marchand <jmarchan@etud.insa-toulouse.fr>
 */
public interface NIToCtrl {
    /**
     * Notifies the controller that a Reply message has been received.
     * 
     * @param h the Reply message received
     */
    public void replyReceived(Reply h);
    
    /**
     * Notifies the controller that a Command message has been received.
     * 
     * @param cm the Command message received
     */
    public void commandReceived(Command cm);
    
    /**
     * Notifies the controller that a FileProposition message has been received.
     * 
     * @param fp the FileProposition message received
     */
    public void filePropositionReceived(FileProposition fp);
}